home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / tbbs / prgsourc.zip / HOMES.ZIP / HOMES.PRG < prev    next >
Text File  |  1996-01-14  |  4KB  |  117 lines

  1. SET EXCLUSIVE OFF                                
  2. SET ESCAPE OFF                                   
  3. SET DELETED ON                                   
  4. SET CONFIRM OFF                                  
  5. SET INTENSITY OFF
  6. SET PROCEDURE TO screen
  7. SET PROCEDURE TO agent
  8.  
  9. SET FORMAT TO fscr NOCLEAR                       
  10. offset = At(Chr(38)+Chr(38), OptData())          
  11. IF SubStr(OptData(), offset + 2, 1) = " "        
  12.     offset = offset + 1                          
  13. ENDIF
  14. offset = offset + 3                              
  15.  
  16. homes = SubStr(OptData(), offset, 2)               && get H#.DBF
  17. areas = homes + "areas"                            && H#AREAS.DBF
  18. subs  = homes + "subs"                             && H#SUBS.DBF
  19. ho    = homes + "home"                             && H#HOME.NDX
  20. su    = homes + "subs"                             && H#HOME.NDX
  21. ar    = homes + "area"                             && H#AREA.NDX
  22. pi    = homes + "pic"                              && H#PIC.NDX
  23.  
  24. city = RTrim(SubStr(OptData(), offset+3))          && get city/cnty name
  25.  
  26. hu = uName()
  27.  
  28. SELECT a                                         && a=H#.DBF
  29. USE (homes) INDEX (ho),(pi)                           
  30.  
  31. DECLARE tarray[51]
  32. tarray[1] = "EMPTY"
  33. tg = 0
  34.  
  35. SELECT b                                         && b=H#AREAS.DBF
  36. USE (areas) INDEX (ar)                           
  37.  
  38. SELECT c                                         && c=REALTOR.DBF
  39. USE realtor INDEX realtor                           
  40.  
  41. SELECT d                                         && d=HUSER.DBF
  42. USE huser INDEX huser                          
  43.  
  44. SELECT e
  45. USE (subs) INDEX (su)
  46.  
  47.  
  48. DO cls WITH 0,0,23,79
  49. DO BoxW WITH 5,7,16,67
  50. SET COLOR TO B/W
  51. @ 6,33 SAY                          "HomeBase"
  52. @ 7,21 SAY              "The Real Estate Database for TBBS"
  53. SET COLOR TO N/W
  54. @ 9,21 SAY              "Copyright 1996, Darryl Kerkeslager"
  55. @ 10,30 SAY                       "LocalNet BBS"
  56. @ 12,12 SAY     "If you're selling your home and it's not listed here -"
  57. @ 13,12 SAY     "ask your broker, Why Not?"
  58. SET COLOR TO W+/W
  59. @ 15,22 SAY               "───── Any Key to Continue ─────"
  60. key = Inkey(20)
  61.  
  62. DO cls WITH 5,7,16,67
  63. DO BoxW WITH 7,7,16,71
  64. @ 8,9 SAY  "Homes advertised are available on an equal opportunity basis."
  65. @ 9,9 SAY  "This service is advertising, and is not associated with any"
  66. @ 10,9 SAY "real estate broker, nor does this BBS serve as a broker or"
  67. @ 11,9 SAY "assist in the buying or selling of real estate. This BBS, the"
  68. @ 12,9 SAY "author, nor the Sysop are responsible for any errors in the"
  69. @ 13,9 SAY "listings. All photographs are property of the listing agent"
  70. @ 14,9 SAY "or agency, and they retain all applicable rights."
  71. SET COLOR TO W+/W
  72. @ 15,23 SAY                "───── Any Key to Continue ─────"
  73. key = Inkey(30)
  74.  
  75.  
  76. SELECT f
  77. USE c:\flagset\flagset INDEX c:\flagset\name
  78.  
  79. SEEK hu
  80.  
  81. IF real .AND. realv                              && If Broker or Sysop
  82.    own = realo
  83.    IF uPriv() = 255
  84.       DO cls WITH 2,0,20,79
  85.       DO BoxW WITH 6,15,9,42
  86.       @ 7,17 SAY "Select the Agency to use"
  87.       @ 8,17 SAY "in edit fuctions."
  88.       comp = " "
  89.       DO pcomp
  90.       SELECT f
  91.    ELSE
  92.       agnte = mix
  93.       comp = realco
  94.    ENDIF
  95.    USE
  96.    SELECT a
  97.    DO edit
  98.    RELEASE realco,realo,mix
  99. ENDIF
  100. DO cls WITH 0,0,23,79
  101. SET COLOR TO R/R 
  102. @ 0,0 CLEAR TO 1,79 
  103. SET COLOR TO GR+/R 
  104. @ 0,3 SAY city    
  105. @ 0,Col()+1 SAY "Real Estate Areas"                 
  106. SET COLOR TO W+/R 
  107. @ 0,73 SAY "AREA  "
  108. @ 1,73 SAY "SCREEN"
  109. DO ta
  110.  
  111. **************************************************
  112. *       Main Program
  113.  
  114. DO parea WITH 1
  115.  
  116. QUIT
  117.